import 'package:kkhousekeep/generated/json/base/json_field.dart';
import 'package:kkhousekeep/generated/json/home_exist_new_mag_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class HomeExistNewMagEntity {
	late int code;
	late HomeExistNewMagObj obj;
	late String msg;

	HomeExistNewMagEntity();

	factory HomeExistNewMagEntity.fromJson(Map<String, dynamic> json) => $HomeExistNewMagEntityFromJson(json);

	Map<String, dynamic> toJson() => $HomeExistNewMagEntityToJson(this);

	HomeExistNewMagEntity copyWith({int? code, HomeExistNewMagObj? obj, String? msg}) {
		return HomeExistNewMagEntity()
			..code= code ?? this.code
			..obj= obj ?? this.obj
			..msg= msg ?? this.msg;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class HomeExistNewMagObj {
	late bool noticeExist;
	late bool workOrderExist;
	late bool billExist;

	HomeExistNewMagObj();

	factory HomeExistNewMagObj.fromJson(Map<String, dynamic> json) => $HomeExistNewMagObjFromJson(json);

	Map<String, dynamic> toJson() => $HomeExistNewMagObjToJson(this);

	HomeExistNewMagObj copyWith({bool? noticeExist, bool? workOrderExist, bool? billExist}) {
		return HomeExistNewMagObj()
			..noticeExist= noticeExist ?? this.noticeExist
			..workOrderExist= workOrderExist ?? this.workOrderExist
			..billExist= billExist ?? this.billExist;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}